package org.example.ftp.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum UserSexEnum {

    FEMALE(0,"女"),
    MALE(1,"男");

    @EnumValue
    private final int code;
    @JsonValue
    private final String value;

    UserSexEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

}
